package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.Merchant;
import com.nbsaas.boot.merchant.api.domain.response.MerchantResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 商家-实体对象转化成响应对象
*/

public class MerchantResponseConvert  implements Converter<MerchantResponse,Merchant> {

    @Override
    public MerchantResponse convert(Merchant source) {
        MerchantResponse  result = new  MerchantResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

